<template>
  <div class="header">
    <div class="home_header">
      <p>Todolist</p>
      <input
        type="text"
        placeholder="Todolist"
        v-model="input"
        @keydown.enter="addInfo"
      /><button @click="addInfo">添加</button>
    </div>
  </div>
</template>

<script>
export default {
  setup(props) {},
  components: {},
};
</script>
<style scoped lang='scss'>
.home_header {
  color: #fff;
  width: 100%;
  height: 70px;
  line-height: 80px;
  background: #1c2d39;
  display: flex;
  align-items: center;
  justify-content: center;
  p {
    margin-right: 100px;
  }
  button {
    margin-left: 100px;
    width: 100px;
    height: 40px;
  }
  input {
    width: 300px;
    height: 40px;
    outline: none;
    border-radius: 10px;
  }
}
</style>
